home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / bookmark_previews-0.6.5-fx.xpi / chrome / content / placesTree.xml < prev    next >
Extensible Markup Language  |  2008-05-27  |  2KB  |  39 lines

  1. <?xml version="1.0"?>
  2. <bindings id="placesTreeBindings"
  3.           xmlns="http://www.mozilla.org/xbl"
  4.           xmlns:xbl="http://www.mozilla.org/xbl"
  5.           xmlns:html="http://www.w3.org/1999/xhtml"
  6.           xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  7.  
  8.   <binding id="preview-tree" extends="chrome://browser/content/places/tree.xml#places-tree">
  9.     <implementation implements="nsINavHistoryResultViewObserver">
  10.       <method name="load">
  11.         <parameter name="queries"/>
  12.         <parameter name="options"/>
  13.         <body><![CDATA[
  14.           var result = PlacesUtils.history.executeQueries(queries, queries.length,
  15.                                                           options);
  16.  
  17.           var callback;
  18.           if (this.flatList) {
  19.             var onOpenFlatContainer = this.onOpenFlatContainer;
  20.             if (onOpenFlatContainer)
  21.               callback = new Function("aContainer", onOpenFlatContainer);
  22.           }
  23.           var treeView = new PlacesTreeView(this.showRoot, this.flatList, callback);
  24.           extendPreviewView(treeView,"Content");
  25.           result.viewer = treeView;
  26.           this.view = treeView;
  27.           this.previewView = treeView;;
  28.           if (!this._controller) {
  29.             this._controller = new PlacesController(this);
  30.             this.controllers.appendController(this._controller);
  31.           }
  32.           this._cachedInsertionPoint = undefined;
  33.  
  34.         ]]></body>
  35.       </method>
  36.     </implementation>
  37.   </binding>
  38. </bindings>
  39.